<?php

class IndexController extends AdminController
{


	public function actionIndex()
	{
		$this->render('index');
	}
    public function actionGetNav(){
        if(Yii::app()->request->isAjaxRequest){
            $Nav = Nav::model();
            $id = intval(Yii::app()->request->getParam('id'));
            $info = $Nav->getNav($id);
            echo json_encode($info);
            Yii::app()->end();
        }
    }

}